{include 'header.tpl'}
<ol class="breadcrumb">
    <li><a href="/adminmall/visit/oldUserTotal">老用户访问统计</a></li>
</ol>
<form method="get" action="/adminmall/visit/oldUserTotal" class="form-inline">
    <table>
        <tr>


            <td>
                <label for="form-w" class="control-label">时间：</label>
                <input type="text" class="date-picker" id="begin_date" name="begin_date" value="{$start_time}" style="width: 85px;"/> 至 <input type="text" class="date-picker" id="end_date" name="end_date" value="{$end_time}" style="width: 85px;"/>
            </td>

            <td>
                <button type="submit" class="btn btn-primary">查找</button>
                <a href="/adminmall/visit/list" class="btn btn-danger">清空条件</a>
                {*<button type="button" onclick="dao()" class="btn btn-primary">导出</button>*}
            </td>
        </tr>
    </table>
</form>
<div class="clearfix" style="height:30px;"></div>
<table class="table" style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word">
    <tr>
        <td>日期</td>
        <td>老用户人数统计 </td>
        <td>老用户进入首页人数</td>
        <td>老用户订单人数</td>
        <td>老用户支付人数</td>
    </tr>
    {*<tr style="color: red; font-size: 120%">
        <td>汇总</td>
        <td>{intval($total[1])}</td>
        <td>{intval($total[2])}</td>
        <td>{intval($total[3])}</td>
        <td>{intval($total[4])}</td>
        <td>{intval($total[5])}</td>
        <td>{intval($total[6])}</td>
        <td>{intval($total[7])}</td>
        <td>{intval($total['orders_count'])}</td>
    </tr>*}
    {foreach $data as $k => $v}
       <tr>
           <td>{$k}</td>
           <td>{intval($v['count_old_user'])}</td>
           <td>{intval($v['count_home'])}</td>
           <td>{intval($v['count_order'])}</td>
           <td>{intval($v['count_pay'])}</td>
       </tr>
       {/foreach}
</table>
{include "pager.tpl"}
<script type="text/javascript">
    $(function () {
        create_date_picker();
    });


</script>
{include 'footer.tpl'}